import { toolConvey } from '../convey'

// 头条 预估受众
export function getEstimateAudience (account_id,param) {
  return toolConvey(account_id,'2/tools/estimate_audience/',param,'get')
}
// 行为 类目
export function getActionCategory  (account_id,param) {  // { advertiser_id,action_scene,action_days}
  return toolConvey(account_id,'2/tools/interest_action/action/category/',param,'get')
}
// 兴趣 类目
export function getInterestCategory  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/tools/interest_action/interest/category/',param,'get')
}
// 图片 素材
export function getImageMaterial  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/file/image/get/',param,'get')
}
// 视频 素材
export function getVideoMaterial  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/file/video/get/',param,'get')
}
// 视频 智能获取封面
export function getVideoCover  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/tools/video_cover/suggest/',param,'get')
}
// 橙子建站落地页链接列表
export function getSite  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/tools/site/get/',param,'get')
}
// 程序化落地页链接组
export function getSiteGroup  (account_id,param) {  // { advertiser_id }
  return toolConvey(account_id,'2/tools/landing_group/get/',param,'get')
}
// 推广卡片 行动号召 文案 (枚举)
export function getCardRecommendTitle  (account_id,param) {  // { advertiser_id, text_type(PROMOTION、CARD_TITLE、CALL_TO_ACTION) } 
  return toolConvey(account_id,'2/tools/promotion_card/recommend_title/get/',param,'get')
}
//  计划 更改状态
// export function setStatus (account_id,param) {  // { advertiser_id, ad_ids:[],opt_status:'' }
//   return toolConvey(account_id,'2/ad/update/status/',param,'POST')
// }
// 计划 更改预算
export function setBudget (account_id,param) {  // { advertiser_id, data[ { ad_id:'',budget:'' }] }
  return toolConvey(account_id,'2/ad/update/budget/',param,'POST')
}
//  计划 更改出价
export function setBid (account_id,param) {  // { advertiser_id, data[ { ad_id:'',bid:'' }] }
  return toolConvey(account_id,'2/ad/update/bid/',param,'POST')
}
//  商品库 信息
export function productPlatform (account_id) {  // { advertiser_id }
  return toolConvey(account_id,'2/dpa/product/availables/',{ advertiser_id:account_id },'GET')
}
//  商品 列表
export function productList (account_id,param) {  // { advertiser_id, product_platform_id }
  return toolConvey(account_id,'2/dpa/detail/get/',param,'GET')
}

